package com.agriculture.competition.mapper;

import com.agriculture.competition.domain.JaCompetitionGroup;
import com.agriculture.competition.domain.vo.CompetitionGroupResult;
import com.agriculture.competition.domain.vo.CompetitionGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 比赛团体关联Mapper接口
 *
 * @author agriculture
 * @date 2025-03-04
 */
public interface JaCompetitionGroupMapper {
    /**
     * 查询比赛团体关联
     *
     * @param id 比赛团体关联主键
     * @return 比赛团体关联
     */
    public JaCompetitionGroup selectJaCompetitionGroupById(Long id);

    /**
     * 查询比赛团体关联列表
     *
     * @param jaCompetitionGroup 比赛团体关联
     * @return 比赛团体关联集合
     */
    public List<JaCompetitionGroup> selectJaCompetitionGroupList(JaCompetitionGroup jaCompetitionGroup);

    /**
     * 新增比赛团体关联
     *
     * @param jaCompetitionGroup 比赛团体关联
     * @return 结果
     */
    public int insertJaCompetitionGroup(JaCompetitionGroup jaCompetitionGroup);

    /**
     * 修改比赛团体关联
     *
     * @param jaCompetitionGroup 比赛团体关联
     * @return 结果
     */
    public int updateJaCompetitionGroup(JaCompetitionGroup jaCompetitionGroup);

    /**
     * 删除比赛团体关联
     *
     * @param id 比赛团体关联主键
     * @return 结果
     */
    public int deleteJaCompetitionGroupById(Long id);

    /**
     * 批量删除比赛团体关联
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteJaCompetitionGroupByIds(Long[] ids);


    public List<CompetitionGroupResult> queryCompetitionGroupUsers(Map<String, Object> map);

    public List<CompetitionGroupVo> queryAllCompetitionGroupNum();

    public List<CompetitionGroupVo> queryCompetitionGroupInfo(Long id);

    public List<CompetitionGroupVo> queryCompetitionScore(Map<String, Object> map);

    public List<CompetitionGroupVo> queryLoginUserGroup(Long userId);


}
